//
//  WPReadingScrollView.m
//  wobingwoyi
//
//  Created by WGP on 16/7/28.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import "WPReadingCollectionView.h"

@interface WPReadingCollectionView ()

@property(nonatomic,strong)UICollectionViewFlowLayout *layout;

@end

static NSString *ID = @"firstcell";
@implementation WPReadingCollectionView


-(instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout
{
    if (self = [super initWithFrame:frame collectionViewLayout:layout]) {
        
        self.layout = (UICollectionViewFlowLayout *)layout;
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.layout.itemSize = self.bounds.size;
    self.layout.minimumLineSpacing = 0;
    self.layout.minimumInteritemSpacing = 0;
    
    self.layout.scrollDirection = UICollectionViewScrollDirectionHorizontal;
}

@end









